- 
		Home
	
 
	- 
ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF
 
- 
6.3.4
 
- 
Code
 
- 
Classes
 
-  Queue 
 
	
	
		
			
				
					
													
								
																			
											| Total Complexity | 
											106 | 
										
																			
											| Dependencies | 
											10 | 
										
																			
											| Dependents | 
											4 | 
										
																	
							 
													
								
																			
											| Total lines | 
											719 | 
										
																			
											| Lines of code | 
											479 | 
										
																			
											| Logical lines of code | 
											274 | 
										
																	
							 
													
								
																			
											| Comment lines | 
											70 | 
										
																			
											| Methods | 
											35 | 
										
																			
											| Properties | 
											5 | 
										
																	
							 
											 
				 
									
							 
		 
	 
	Methods 35
	
		
		
			| Method | 
							Rating | 
													
					
						Maintainability
					
				 | 
										
					Complexity
				 | 
										
					Lines of code
				 | 
					
		
		
					
				| prepareItems() | 
									C  | 
																	28  | 
													26 | 
													137 | 
							
					
				| run() | 
									A  | 
																	42 | 
													13 | 
													56 | 
							
					
				| isDuplicateActive() | 
									A  | 
																	48 | 
													10 | 
													37 | 
							
					
				| getQStatus() | 
									S  | 
																	58 | 
													5 | 
													18 | 
							
					
				| getStats() | 
									S  | 
																	49 | 
													4 | 
													31 | 
							
					
				| setCustomBulk() | 
									S  | 
																	59 | 
													5 | 
													14 | 
							
					
				| isItemInQueue() | 
									S  | 
																	59 | 
													4 | 
													14 | 
							
					
				| itemFailed() | 
									S  | 
																	61 | 
													3 | 
													13 | 
							
					
				| getStatus() | 
									S  | 
																	63 | 
													3 | 
													12 | 
							
					
				| countQueue() | 
									S  | 
																	56 | 
													2 | 
													18 | 
							
					
				| getCustomDataItem() | 
									S  | 
																	67 | 
													3 | 
													8 | 
							
					
				| checkQueueCache() | 
									S  | 
																	70 | 
													3 | 
													6 | 
							
					
				| addSingleItem() | 
									S  | 
																	57 | 
													1 | 
													17 | 
							
					
				| isCustomOperation() | 
									S  | 
																	70 | 
													2 | 
													7 | 
							
					
				| getItem() | 
									S  | 
																	67 | 
													2 | 
													8 | 
							
					
				| addQueueItem() | 
									S  | 
																	62 | 
													1 | 
													11 | 
							
					
				| prepare() | 
									S  | 
																	100 | 
													1 | 
													0 | 
							
					
				| prepareBulkRestore() | 
									S  | 
																	100 | 
													1 | 
													0 | 
							
					
				| getType() | 
									S  | 
																	100 | 
													1 | 
													0 | 
							
					
				| createNewBulk() | 
									S  | 
																	65 | 
													1 | 
													9 | 
							
					
				| startBulk() | 
									S  | 
																	75 | 
													1 | 
													4 | 
							
					
				| cleanQueue() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| resetQueue() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| setOptions() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| dropItem() | 
									S  | 
																	74 | 
													1 | 
													5 | 
							
					
				| getQueueName() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| deQueue() | 
									S  | 
																	73 | 
													1 | 
													5 | 
							
					
				| queueToMediaItem() | 
									S  | 
																	65 | 
													1 | 
													9 | 
							
					
				| mediaItemToQueue() | 
									S  | 
																	81 | 
													1 | 
													3 | 
							
					
				| updateItem() | 
									S  | 
																	76 | 
													1 | 
													4 | 
							
					
				| itemDone() | 
									S  | 
																	76 | 
													1 | 
													4 | 
							
					
				| uninstall() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| activatePlugin() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| getShortQ() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| createCustomData() | 
									S  | 
																	67 | 
													1 | 
													8 |